<cfoutput>
	<!--- Global View Helper Functions --->
	<cffunction name="dspFormButtons">
		<cfargument name="key" default="0">
		<cfargument name="action" default="Insurance">
		<cfsavecontent variable="buttons">			
			<div class="center" style="margin: 1em;">
				<a class="btn btn-success" style="font-size: 14px;" href="javascript:;" onClick="submitForm('#URLFor(controller=PARAMS.controller, action='updateDocument')#');">
					<i class="icon-ok icon-white"></i>Save
				</a>
				<a class="btn btn-danger" style="font-size: 14px;" href="#URLFor(controller='consumer', action=ARGUMENTS.action, key=ARGUMENTS.key)#">
					<i class="icon-arrow-left icon-white"></i>Return
				</a>
			</div>			
		</cfsavecontent>
		<cfreturn buttons>
	</cffunction>
	
	<cffunction name="dspDocumentHeader">
		<cfsavecontent variable="documentHeader">
			<table align="center" class="documentHeader">
				<td valign="middle" align="right">
					<span>
						6915 Annapolis Road<br />
						Hyattsville, MD 20784<br />
						Telephone: (301) 925-9120<br />
						Fax: (301) 925-4328
					</span>
				</td>
				<td valign="middle" align="center">
					<cfimage action="writeToBrowser" source="#ExpandPath('images/SJH_logo.png')#">
				</td>
				<td valign="middle" align="left">
					<span>
						4607 69th Avenue<br />
						Hyattsville, MD 20784<br />
						Telephone: (301) 386-0014<br />
						Fax: (301) 386-0018
					</span>
				</td>
			</table>
		</cfsavecontent>
		<cfreturn documentHeader>
	</cffunction>
	
	<cffunction name="dspAddButton">
		<cfargument name="type" default="1">
		<cfargument name="columnType" default="">
		<cfargument name="id" default="#PARAMS.key#">
		<cfsavecontent variable="addButton">			
			<cfif ARGUMENTS.type EQ 1>
				<div class="btn-group" style="margin: 9px 0;">
					<a class="btn btn-info btn-single addButton" title="Add Item" column-type="#ARGUMENTS.columnType#" column-id="#ARGUMENTS.id#">
						<i class="icon-plus icon-white"></i>
					</a>
				</div>
			<cfelse>
				<a class="btn dropdown-toggle btn-info btn-small addButton" title="Add Item" column-type="#ARGUMENTS.columnType#"  column-id="#ARGUMENTS.id#" data-toggle="dropdown">
			    	<i class="icon-plus icon-white"></i>
			    </a>
			</cfif> 			
		</cfsavecontent>
		<cfreturn addButton>
	</cffunction>
	
	<cffunction name="dspDeleteButton">
		<cfargument name="type" default="2" hint="TYPE 1 ->Appended | TYPE 2 -> Table Cell | TYPE 3 -> Rounded (Lists)">
		<cfargument name="method" default="1" hint="METHOD 1 -> Javascript | METHOD 2 -> Action">
		<cfargument name="action" default="">
		<cfargument name="parentLevel" default="2">
		<cfscript>
			var $args = ARGUMENTS;
			var $attr = { 'onClick'="", 'href'="" };
			
			if($args.method == 1) {
				$attr.onClick &= "$(this)";
				for(intRow = 1; intRow LTE $attr.parentLevel; intRow++) {
					$attr.onClick &= ".parent()";
				}
				$attr.onClick = ".remove();intAddRow--;";
			} else $attr.href = $args.action;
		</cfscript>
		<cfsavecontent variable="deleteButton">
			<cfif $args.type EQ 1>
				<div class="input-append">
					<input type="text" class="appendedPrependedInput" name="{name}" id="{id}" value=""/>
					<a class="btn btn-danger btn-single" href="#$attr.href#" style="padding: 2px 4px 1px 4px;" title="Delete Item" onClick="#$attr.onClick#">
						<i class="icon-trash icon-white"></i>
					</a>
				</div>
			<cfelseif $args EQ 2>
				<div class="btn-group" style="margin: 9px 0;">
					<a class="btn btn-danger btn-single" href="#$attr.href#" title="Delete Item" onClick="#$attr.onClick#">
						<i class="icon-trash icon-white"></i>
					</a>
				</div>
			<cfelse>
				<a class="btn btn-danger btn-single" href="#$attr.href#" title="Delete Item" onClick="#$attr.onClick#">
					<i class="icon-trash icon-white"></i>
				</a>
			</cfif>			
		</cfsavecontent>
		<cfreturn deleteButton>
	</cffunction>
	
	<cffunction name="dspLetterFilter">
		<cfscript>
			consumerNames = Model("consumer").findAll(select="firstName", returnAs="query");
			letters = {};
	
			for(intLetter = 1; intLetter LTE consumerNames.recordCount; intLetter++) {
				letters[Left(consumerNames.firstName[intLetter], 1)] = "";
			}
		</cfscript>		
		<cfsavecontent variable="letterFilter">			
			<div align="center" class="btn-group filter" style="width: width:65%;">
				<table align="center" width="825px">
					<tr>
						<td>
							<cfloop from="#Asc('A')#" to="#Asc('Z')#" index="intLetter">
								<cfset myStyle = "disabled">
								<cfif StructKeyExists(letters, Chr(intLetter))><cfset myStyle = ""></cfif>
								<button class="btn btn-inverse #myStyle# letters" letter="#Chr(intLetter)#">#Chr(intLetter)#</button>
							</cfloop>
						</td>
						<td>
							<a class="btn dropdown-toggle btn-info addButton" data-toggle="dropdown" title="Add Consumer" href="javascript:;" style="padding: 1px 6px 1px 6px;">
		    					<i class="icon-plus icon-white"></i>
		    				</a>
						</td>
					</tr>
				</table>
			</div>			
		</cfsavecontent>
		<cfreturn letterFilter>
	</cffunction>
	
	<cffunction name="dspAddress">
		<cfargument name="prefix" default="">
		<cfargument name="table" default="">
		<cfargument name="id" default="#PARAMS.key#">
		<cfargument name="value" default="">			
		<cfsavecontent variable="address">
			<cfset name = "update[#ARGUMENTS.table#][#ARGUMENTS.id#]">
			<cfset id = "update-#ARGUMENTS.table#-#ARGUMENTS.id#-#ARGUMENTS.prefix#">
			<div style="margin-top: 4px;">				
				#textFieldTag(id="#id#House", class="validate[custom[number]] address-house", title="House/Building Number", name="#name#[#ARGUMENTS.prefix#House]", value=ARGUMENTS.value["#ARGUMENTS.prefix#house"][1], maxlength=10)#
				#textFieldTag(id="#id#Street", class="validate[custom[number]] address-street", title="Street Name", name="#name#[#ARGUMENTS.prefix#Street]", value=ARGUMENTS.value["#ARGUMENTS.prefix#street"][1], maxlength=30)#
			</div>
			<div style="margin-top: 4px;">
				#textFieldTag(id="#id#City", class="validate[custom[number]] address-city", title="City", name="#name#[#ARGUMENTS.prefix#City]", value=ARGUMENTS.value["#ARGUMENTS.prefix#city"][1], maxlength=20)#
				#textFieldTag(id="#id#State", class="validate[custom[number]] address-state", title="State", name="#name#[#ARGUMENTS.prefix#State]", value=ARGUMENTS.value["#ARGUMENTS.prefix#state"][1], maxlength=2)#
				#textFieldTag(id="#id#Zipcode", class="validate[custom[number]] address-zipcode", title="Zip Code", name="#name#[#ARGUMENTS.prefix#Zipcode]", value=ARGUMENTS.value["#ARGUMENTS.prefix#zipCode"][1], maxlength=5)#
			</div>			
		</cfsavecontent>
		<cfreturn address>
	</cffunction>
	
	<cffunction name="dspAddress2">
		<cfargument name="prefix" default="">
		<cfargument name="object" default="">
		<cfargument name="value" default="">
		<cfsavecontent variable="address">			
			<cfif NOT isStruct(ARGUMENTS.object)>
				<cfset ARGUMENTS.object = { id = PARAMS.key }>
				<cfloop list="house,street,city,state,zipcode" index="column"><cfset ARGUMENTS.object['#ARGUMENTS.prefix##column#'] = ""></cfloop>
			</cfif>
			<div style="margin-top: 4px;">													
				#textFieldTag(id="update-#ARGUMENTS.object.id#-#ARGUMENTS.prefix#House", class="validate[custom[number]] address-house", name="update[#ARGUMENTS.object.id#][#ARGUMENTS.prefix#House]", value=ARGUMENTS.object.house, maxlength=10)#
				#textFieldTag(id="update-#ARGUMENTS.object.id#-#ARGUMENTS.prefix#Street", class="validate[custom[number]] address-street", name="update[#ARGUMENTS.object.id#][#ARGUMENTS.prefix#Street]", value=ARGUMENTS.object.street, maxlength=30)#
			</div>
			<div style="margin-top: 4px;">
				#textFieldTag(id="update-#ARGUMENTS.object.id#-#ARGUMENTS.prefix#City", class="validate[custom[number]] address-city", name="update[#ARGUMENTS.object.id#][#ARGUMENTS.prefix#City]", value=ARGUMENTS.object.city, maxlength=20)#
				#textFieldTag(id="update-#ARGUMENTS.object.id#-#ARGUMENTS.prefix#State", class="validate[custom[number]] address-state", name="update[#ARGUMENTS.object.id#][#ARGUMENTS.prefix#State]", value=ARGUMENTS.object.state, maxlength=2)#
				#textFieldTag(id="update-#ARGUMENTS.object.id#-#ARGUMENTS.prefix#Zipcode", class="validate[custom[number]] address-zipcode", name="update[#ARGUMENTS.object.id#][#ARGUMENTS.prefix#Zipcode]", value=ARGUMENTS.object.zipCode, maxlength=5)#
			</div>			
		</cfsavecontent>
		<cfreturn address>
	</cffunction>
	
	<cffunction name="dspSSN">
		<cfargument name="prefix" default="">
		<cfsavecontent variable="SSN">			
			<cfset THIS.social = {
				ssn1 = " ",
				ssn2 = " ",
				ssn3 = " "
			}>
			#textFieldTag(id="#PARAMS.key#-#ARGUMENTS.prefix#ssn-1", class="validate[required] ssn-3 numeric", name="#PARAMS.key#['#ARGUMENTS.prefix#ssn']", value=THIS.social.ssn1, maxlength="3")#<strong> - </strong>
			#textFieldTag(id="#PARAMS.key#-#ARGUMENTS.prefix#ssn-2", class="validate[required] ssn-2 numeric", name="#PARAMS.key#['#ARGUMENTS.prefix#ssn']", value=THIS.social.ssn2, maxlength="2")#<strong> - </strong>
			#textFieldTag(id="#PARAMS.key#-#ARGUMENTS.prefix#ssn-3", class="validate[required] ssn-4 numeric", name="#PARAMS.key#['#ARGUMENTS.prefix#ssn']", value=THIS.social.ssn3, maxlength="4")#
		</cfsavecontent>
		<cfreturn SSN>
	</cffunction>
	
	<cffunction name="dspPhoneNumber">
		<cfargument name="table" default="">
		<cfargument name="id" default="#PARAMS.key#">
		<cfargument name="columnName" default="">
		<cfargument name="value" default="">	
		<cfsavecontent variable="phoneNumber">			
			<cfset phone = ["" , "", ""]>
			<cfif ARGUMENTS.value IS NOT "">
				<cfset phone[1] = Mid(ARGUMENTS.value, 1, 3)>
				<cfset phone[2] = Mid(ARGUMENTS.value, 4, 6)>
				<cfset phone[3] = Mid(ARGUMENTS.value, 7, 10)>
			</cfif>
			#textFieldTag(id="update-#ARGUMENTS.table#-#ARGUMENTS.id#-#ARGUMENTS.columnName#-1", name="update[#ARGUMENTS.table#][#ARGUMENTS.id#][#ARGUMENTS.columnName#]", class="phone-3 numeric", prepend="<strong>( </strong>", value="#phone[1]#", maxlength="3")#
			#textFieldTag(id="update-#ARGUMENTS.table#-#ARGUMENTS.id#-#ARGUMENTS.columnName#-2", name="update[#ARGUMENTS.table#][#ARGUMENTS.id#][#ARGUMENTS.columnName#]", class="phone-3 numeric", prepend="<strong> ) </strong>", value="#phone[2]#", maxlength="3")#
			#textFieldTag(id="update-#ARGUMENTS.table#-#ARGUMENTS.id#-#ARGUMENTS.columnName#-3", name="update[#ARGUMENTS.table#][#ARGUMENTS.id#][#ARGUMENTS.columnName#]", class="phone-4 numeric", prepend="<strong> ) </strong>", value="#phone[3]#", maxlength="4")#
		</cfsavecontent>
		<cfreturn phoneNumber>
	</cffunction>
	
	<cffunction name="dspPhoneNumber2">
		<cfargument name="prefix" default="">
		<cfargument name="object" default="">
		<cfsavecontent variable="phoneNumber">			
			<cfset phone = ["" , "", ""]>
			<cfif isStruct(ARGUMENTS.object) AND ARGUMENTS.object['#ARGUMENTS.prefix#Phone'][1] IS NOT "">
				<cfset phone[1] = Mid(ARGUMENTS.object['#ARGUMENTS.prefix#Phone'], 1, 3)>
				<cfset phone[1] = Mid(ARGUMENTS.object['#ARGUMENTS.prefix#Phone'], 4, 6)>
				<cfset phone[1] = Mid(ARGUMENTS.object['#ARGUMENTS.prefix#Phone'], 7, 10)>
			<cfelse>
				<cfset ARGUMENTS.object = { id = PARAMS.key }>
			</cfif>
			#textFieldTag(id="update-#ARGUMENTS.object.id#-#ARGUMENTS.prefix#Phone-1", name="update[#ARGUMENTS.object.id#][#ARGUMENTS.prefix#Phone]", class="phone-3 numeric", prepend="<strong>( </strong>", value="#phone[1]#", maxlength="3")#
			#textFieldTag(id="update-#ARGUMENTS.object.id#-#ARGUMENTS.prefix#Phone-2", name="update[#ARGUMENTS.object.id#][#ARGUMENTS.prefix#Phone]", class="phone-3 numeric", prepend="<strong> ) </strong>", value="#phone[2]#", maxlength="3")#
			#textFieldTag(id="update-#ARGUMENTS.object.id#-#ARGUMENTS.prefix#Phone-3", name="update[#ARGUMENTS.object.id#][#ARGUMENTS.prefix#Phone]", class="phone-4 numeric", prepend="<strong> ) </strong>", value="#phone[3]#", maxlength="4")#
		</cfsavecontent>
		<cfreturn phoneNumber>
	</cffunction>
	
	<cffunction name="dspDosage">
		<cfargument name="prefix" default="">
		<cfsavecontent variable="dosage">
			<cfset dosages = model("dosages").findAll()>
			#textFieldTag(id="#PARAMS.key#-#ARGUMENTS.prefix#dosage", name="#PARAMS.key#[#ARGUMENTS.prefix#dosage]", class="small numeric", value="##")#
			<span style="vertical-align: middle; padding-top:8px;">
				<select>
					<option value="0">-- Please Select Dosage Unit --</option>
					<cfloop query="dosages">
						<option value="#id#">#dosage#</option>
					</cfloop>
				</select>
			</span>			
		</cfsavecontent>
		<cfreturn dosage>
	</cffunction>
	
	<cffunction name="dspFrequency">
		<cfargument name="prefix" default="">
		<cfsavecontent variable="frequency">	
			<cfset frequencies = model("frequencies").findAll()>	
			#textFieldTag(id="#PARAMS.key#-#ARGUMENTS.prefix#frequency", name="#PARAMS.key#[#ARGUMENTS.prefix#frequency]", class="small numeric", value="##")#
			<span style="vertical-align: middle; padding-top:8px;">
				<select>
					<option value="0">-- Please Select Frequency Unit --</option>
					<cfloop query="frequencies">
						<option value="#id#">[#abbreviation#] #time# (#specification#)</option>
					</cfloop>
				</select>
			</span>			
		</cfsavecontent>
		<cfreturn frequency>
	</cffunction>
	
	<cffunction name="dspRoutes">
		<cfargument name="prefix" default="">
		<cfsavecontent variable="route">	
			<cfset routes = model("routes").findAll()>	
			#textFieldTag(id="#PARAMS.key#-#ARGUMENTS.prefix#frequency", name="#PARAMS.key#[#ARGUMENTS.prefix#frequency]", class="small numeric", value="##")#
			<span style="vertical-align: middle; padding-top:8px;">
				<select>
					<option value="0">-- Please Select Route Method --</option>
					<cfloop query="routes">
						<option value="#id#">[#abbreviation#] #specification#</option>
					</cfloop>
				</select>
			</span>			
		</cfsavecontent>
		<cfreturn route>
	</cffunction>
	
	<cffunction name="dspRadioButton">
		<cfargument name="columnName" default="">
		<cfargument name="class" default="">
		<cfargument name="value" default="">
		<cfargument name="label" default="">
		<cfargument name="table" default="">
		<cfargument name="document">
		<cfscript>
			var attributes = {
					id="update-#ARGUMENTS.table#-#PARAMS.key#-#ARGUMENTS.columnName#-#ARGUMENTS.value#",
					name="update[#ARGUMENTS.table#][#PARAMS.key#][#ARGUMENTS.columnName#]"
				};
			var radioButton = '#radioButtonTag(id="#attributes.id#", name="#attributes.name#", class="#ARGUMENTS.class#", value="#ARGUMENTS.value#", label="#ARGUMENTS.label# ")#';	
			if(StructKeyExists(ARGUMENTS, "document") AND ARGUMENTS.document[ARGUMENTS.columnName][1] EQ ARGUMENTS.value)
				radioButton = Replace(radioButton, '>', ' checked="true">');
			return radioButton;
		</cfscript>
	</cffunction>
	
	<cffunction name="dspCheckbox">
		<cfargument name="columnName" default="">
		<cfargument name="label" default="">
		<cfargument name="count" default="1">
		<cfargument name="document">
		<cfargument name="table" default="">
		<cfargument name="htmlPrepend" default="">
		<cfargument name="class" default="">
		
		<cfscript>
			var attributes = {
					id="update-#ARGUMENTS.table#-#PARAMS.key#-#ARGUMENTS.columnName#-#ARGUMENTS.count#",
					name="update[#ARGUMENTS.table#][#PARAMS.key#][#ARGUMENTS.columnName#][#ARGUMENTS.count#]"
				};
			var checkbox = '#checkboxTag(id="#attributes.id#", name="#attributes.name#", class="#ARGUMENTS.class#", value="1")#';
	
			if(StructKeyExists(ARGUMENTS, "document") AND 
				ListLen(ARGUMENTS.document[ARGUMENTS.columnName][1]) GT 0 AND 
					ListGetAt(ARGUMENTS.document[ARGUMENTS.columnName][1], ARGUMENTS.count) EQ 1)
				checkbox = Replace(radioButton, '>', ' checked="true">');
		</cfscript>
		<cfsavecontent variable="checkboxObject">
			<span class="formInput">#checkbox#</span>
			<span class="formLabel">#ARGUMENTS.label# #ARGUMENTS.htmlPrepend#</span>			
		</cfsavecontent>
		<cfreturn checkboxObject>
	</cffunction>
	
	<!--- Global Table Reference Select Elements --->
	<cffunction name="dspAxisCodes">
		<cfargument name="table" default="">
		<cfargument name="id" default="">
		<cfargument name="columnName" default="">
		<cfargument name="value" default="">
		<cfset axisCodes = Model('axisCodes').findAll(order="category")>
		<cfsavecontent variable="axisCodesSelect">
			<select id="update-#ARGUMENTS.table#-#ARGUMENTS.id#-#ARGUMENTS.columnName#" name="update[#ARGUMENTS.table#][#ARGUMENTS.id#][#ARGUMENTS.columnName#]" class="validate[required]" style="width: auto; outline: 0;">
				<option value="0">-- Please Select or You May Enter One --</option>
				<cfoutput query="axisCodes" group="category">
						<optgroup label="#category#">
							<cfoutput>			
								<option value="#id#" <cfif ARGUMENTS.value IS id>selected="true"</cfif>>#name#</option>
							</cfoutput>
						</optgroup>
				</cfoutput>
			</select>
		</cfsavecontent>
		<cfreturn axisCodesSelect>
	</cffunction>
	
	<cffunction name="dspRaces">
		<cfargument name="raceID" default="0">
		<cfset races = model("race").findAll()>
		<cfsavecontent variable="raceObject">			
			<select id="raceSelect" style="width: 250px;">
				<option value="0">-- Please Choose Racial Ethnicity --</option>
				<cfloop query="races">
					<option value="raceID" <cfif ARGUMENTS.raceID EQ races.id>selected="true"</cfif>>#race#</option>
				</cfloop>
			</select>			
		</cfsavecontent>
		<cfreturn raceObject></cffunction>
	
	<cffunction name="dspAmPm">
		<cfsavecontent variable="amPm">
			<select id="#PARAMS.key#-1-medicationDeliveryDate-2" name="#PARAMS.key#[1][medicationDeliveryDate]" style="width:4.5em;">
				<option value="0">-- Please Choose Time Setting --</option>
				<option>am</option><option>pm</option>
			</select>
		</cfsavecontent>
		<cfreturn amPM>
	</cffunction>
	
	<cffunction name="dspDosages">
		<cfset $dosages = model("dosages").findAll()>
		<cfsavecontent variable="dosages">
			<select id="dosages">
				<option value="">-- Please Choose Dosage --</option>
				<cfloop query="$dosages">
					<option value="#id#">#dosage#</option>
				</cfloop>
			</select>
		</cfsavecontent>
		<cfreturn dosages>
	</cffunction>
	
	<cffunction name="dspFrequencies">
		<cfset $frequencies = model("frequencies").findAll()>
		<cfsavecontent variable="frequencies">
			<select id="dosages">
				<option value="0">-- Please Choose Frequency --</option>
				<cfloop query="$frequencies">
					<option value="#id#">#abbrieviation# - #specification# (#time#)</option>
				</cfloop>
			</select>
		</cfsavecontent>
		<cfreturn frequencies>
	</cffunction>
	
	<cffunction name="dspOutpatientTypes">
		<cfargument name="id" default="">
		<cfargument name="value" default="">
		<cfsavecontent variable="dspOutpatientTypes">
			<cfset outpatientTypes = ListToArray("Psychiatrist,Therapist,Case Manager,None")>
			<select id="update-doctors_outpatientTreatments-#ARGUMENTS.id#-type" name="[updateType][doctors_outpatientTreatments[#ARGUMENTS.id#][type]" class="validate[required]">
				<option value="" <cfif ARGUMENTS.value IS "">selected="true"</cfif>>-- Please Select Outpatient Type --</option>
				<cfloop from="1" to="#ArrayLen(outpatientTypes)#" index="intType">
					<option value="#intType#" <cfif ARGUMENTS.value EQ intType>selected="true"</cfif>>#outpatientTypes[intType]#</option>
				</cfloop>
			</select>
		</cfsavecontent>	
	</cffunction>
	
	<!--- Page Specific - Add Row Functions --->
	<cffunction name="dspAdminUserTR">
		<cfargument name="intRow" default="1" >
		<cfargument name="useIntRow" default="false">			
		<cfsavecontent variable="adminUserTR">
			<tr class="#ARGUMENTS.intRow MOD 2#">
				<td valign="middle">
						<div class="user-edit">
							#textFieldTag(id="save-#ARGUMENTS.intRow#-firstName", name="save[#ARGUMENTS.intRow#][firstName]", class="validate[required] normal", maxlength="20")#
						</div>
				</td>
				<td valign="middle">
						<div class="user-edit">
							#textFieldTag(id="save-#ARGUMENTS.intRow#-firstName", name="save[#ARGUMENTS.intRow#][lastName]", class="validate[required] normal", maxlength="20")#
						</div>
				</td>
				<td valign="middle">
					<div class="user-edit">
						#textFieldTag(id="save-#ARGUMENTS.intRow#-mainPhone-1", name="save[#ARGUMENTS.intRow#][mainPhone]", class="validate[required,custom[number]] phone-3", prepend="<strong>( </strong>", maxlength="3")#
						#textFieldTag(id="save-#ARGUMENTS.intRow#-mainPhone-2", name="save[#ARGUMENTS.intRow#][mainPhone]", class="validate[required,custom[number]] phone-3", prepend="<strong> ) </strong>", maxlength="3")#
						#textFieldTag(id="save-#ARGUMENTS.intRow#-mainPhone-3", name="save[#ARGUMENTS.intRow#][mainPhone]", class="validate[required,custom[number]] phone-4", prepend="<strong> - </strong>", maxlength="4")#
					</div>
				</td>
				<td valign="middle">
					<div class="user-edit">
						#textFieldTag(id="save-#ARGUMENTS.intRow#-secondaryPhone-1", name="save[#ARGUMENTS.intRow#][secondaryPhone]", class="validate[custom[number]] phone-3", prepend="<strong>( </strong>", maxlength="3")#
						#textFieldTag(id="save-#ARGUMENTS.intRow#-secondaryPhone-2", name="save[#ARGUMENTS.intRow#][secondaryPhone]", class="validate[custom[number]] phone-3", prepend="<strong> ) </strong>", maxlength="3")#
						#textFieldTag(id="save-#ARGUMENTS.intRow#-secondaryPhone-3", name="save[#ARGUMENTS.intRow#][secondaryPhone]", class="validate[custom[number]] phone-4", prepend="<strong> - </strong>", maxlength="4")#
					</div>
				</td>
				<td valign="middle">
					<div class="user-edit email">
						#textFieldTag(id="save-#ARGUMENTS.intRow#-email", name="save[#ARGUMENTS.intRow#][email]", class="validate[required,custom[email]] normal1", maxlength="30")#
					</div>
				</td>
				<td  style="white-space: nowrap;"  valign="middle">
					<div class="userType-edit radiobutton">
						#radioButtonTag(id="save-#ARGUMENTS.intRow#-userTypeID-3", class="validate[required]", name="save[#ARGUMENTS.intRow#][userTypeID]", value="3", label="Doctor ")#
						#radioButtonTag(id="save-#ARGUMENTS.intRow#-userTypeID-2", class="validate[required]", name="save[#ARGUMENTS.intRow#][userTypeID]", value="2", label="User ")#
						#radioButtonTag(id="save-#ARGUMENTS.intRow#-userTypeID-1", class="validate[required]", name="save[#ARGUMENTS.intRow#][userTypeID]", value="1", label="Admin ")#
					</div>
				</td>
				<td class="transparent" valign="middle">
					<div class="btn-group" style="margin: 9px 0;">
						<button class="btn btn-inverse btn-single editButton" title="Edit User">
							<i class="icon-pencil icon-white"></i>
						</button>
						<button class="btn btn-danger btn-single" title="Delete User" onClick="$(this).parent().parent().parent().remove();">
							<i class="icon-trash icon-white"></i>
						</button>
					</div>
				</td>
			</tr>
		</cfsavecontent>	
		<cfif NOT ARGUMENTS.useIntRow>
			<cfset adminUserTR = Replace(Replace(adminUserTR, "save[#ARGUMENTS.intRow#]", "save[[]]", "All"), "-#ARGUMENTS.intRow#-", "-[]-", "All")>
		</cfif>
		<cfreturn adminUserTR>
	</cffunction>	
	
	<!--- QoQ View Helper Function  --->
	<cffunction name="filterThrough">
		<cfargument name="select" default="*">
		<cfargument name="from" required="yes">
		<cfargument name="where" default="">		
		<cfif ARGUMENTS.where IS NOT "">
			<cfset ARGUMENTS.where = "WHERE " & ARGUMENTS.where>
		</cfif>		
		<cfset object = ARGUMENTS.from>		
		<cfquery name="qryFilterThrough" dbtype="query">
			SELECT 	#ARGUMENTS.select#
			FROM		object
							#ARGUMENTS.where#
		</cfquery>
		<cfreturn qryFilterThrough>
	</cffunction>

	<cffunction name="truncateStringArray">
		<cfargument name="string" default="">
		<cfscript>
			var 	$e = {	"default" = ARGUMENTS.string };			
					$e["subOptions"] = ListToArray(REReplace(Mid($e.default, Find('[', $e.default), Len($e.default)), '\[|\]', '', 'All'));
					$e["option"] =  Mid($e.default, 1, Find('[', $e.default) - 1);
			return $e;
		</cfscript>
	</cffunction>
</cfoutput>